Skip to content

Restructure index page#1748

Open
StanFromIreland wants to merge 10 commits intopython:mainfrom
StanFromIreland:restructure-index
Open

Restructure index page#1748
StanFromIreland wants to merge 10 commits intopython:mainfrom
StanFromIreland:restructure-index

Conversation

@StanFromIreland
Copy link
Member

This moves a few sections around to been more introductory rather than jumping straight into the quickstart, drops less important/relevant sections to the bottom (i.e. the alternative implementations), removes the version section stub (it has been there for long enough), and updates a few little things along the way.

@StanFromIreland StanFromIreland requested a review from nedbat March 2, 2026 16:41
@read-the-docs-community
Copy link

read-the-docs-community bot commented Mar 2, 2026

Documentation build overview

📚 CPython devguide | 🛠️ Build #31672440 | 📁 Comparing ebb4907 against latest (50dd71b)


🔍 Preview build

Show files changed (25 files in total): 📝 24 modified | ➕ 0 added | ➖ 1 deleted
File Status
index.html 📝 modified
contrib/index.html 📝 modified
core-team/index.html 📝 modified
documentation/index.html 📝 modified
genindex/index.html 📝 modified
getting-started/index.html 📝 modified
versions/index.html 📝 modified
contrib/core-team/index.html 📝 modified
core-team/committing/index.html 📝 modified
core-team/experts/index.html 📝 modified
developer-workflow/development-cycle/index.html 📝 modified
developer-workflow/psrt/index.html 📝 modified
documentation/markup/index.html 📝 modified
documentation/start-documenting/index.html 📝 modified
getting-started/pull-request-lifecycle/index.html 📝 modified
getting-started/setup-building/index.html 📝 modified
include/activate-tab/index.html ➖ deleted
triage/labels/index.html 📝 modified
triage/triaging/index.html 📝 modified
contrib/core-team/committing/index.html 📝 modified
contrib/core-team/experts/index.html 📝 modified
contrib/triage/labels/index.html 📝 modified
contrib/triage/triaging/index.html 📝 modified
contrib/workflows/compile/index.html 📝 modified
documentation/translations/coordinating/index.html 📝 modified

StanFromIreland and others added 2 commits March 2, 2026 17:32
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
@StanFromIreland StanFromIreland requested a review from hugovk March 2, 2026 17:36
Copy link
Member

@nedbat nedbat left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A few tweaks to existing sentences, but I like it!

Co-authored-by: Ned Batchelder <ned@nedbatchelder.com>
index.rst Outdated
Comment on lines +156 to +159
.. code-block:: shell

.. code-block:: shell
pre-commit install
pre-commit run --all-files
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are we OK with the security implications of recommending this for every contributor's machine?
cc @sethmlarson

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We're currently using tags as rev for our config, so that would allow any compromised pre-commit repo to instantly execute code by rewriting the tag on a repo. To mitigate this we could adopt using git commit SHAs instead of git tags in the rev field, I believe that pre-commit supports this use-case?

It's obviously an extra support burden to upgrade and maintain these, but it removes the risk of a single compromise to a repository elsewhere from allowing RCE on all contributor machines.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

To mitigate this we could adopt using git commit SHAs instead of git tags in the rev field, I believe that pre-commit supports this use-case?

Yes, by using --freeze with either of these commands:

prek autoupdate --freeze
pre-commit autoupdate --freeze

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'll remove it from here for now, and open an issue when this is merged.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Freezing the hooks in python/cpython#140682.

Comment on lines -297 to -298
Status of Python branches
-------------------------
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a “soft redirect” for people who have #status-of-python-branches bookmarked. Can we keep it?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think ~4 years is long enough.

Thinking of the old flow:

If someone has still been going through all that rigmarole for 4 years and hasn't updated their bookmarks, I think removing this is a good prompt.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I agree with Hugo, I'll remove it unless you feel strongly about keeping it.

We could add a redirect, but it would be quite messy, as such I don't think its worth it.

Comment on lines -297 to -298
Status of Python branches
-------------------------
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think ~4 years is long enough.

Thinking of the old flow:

If someone has still been going through all that rigmarole for 4 years and hasn't updated their bookmarks, I think removing this is a good prompt.

@StanFromIreland StanFromIreland requested a review from encukou March 4, 2026 17:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants